package com.ruoyi.system.mapper;

import java.util.List;

import com.ruoyi.system.domain.BilliardsGameEightBallRecord;
import org.apache.ibatis.annotations.Param;

/**
 * 中式八球比赛记录Mapper接口
 *
 * @author ruoyi
 * @date 2024-12-11
 */
public interface BilliardsGameEightBallRecordMapper {
    /**
     * 查询中式八球比赛记录
     *
     * @param id 中式八球比赛记录主键
     * @return 中式八球比赛记录
     */
    public BilliardsGameEightBallRecord selectBilliardsGameEightBallRecordById(Long id);

    /**
     * 查询中式八球比赛记录列表
     *
     * @param billiardsGameEightBallRecord 中式八球比赛记录
     * @return 中式八球比赛记录集合
     */
    public List<BilliardsGameEightBallRecord> selectBilliardsGameEightBallRecordList(BilliardsGameEightBallRecord billiardsGameEightBallRecord);

    /**
     * 新增中式八球比赛记录
     *
     * @param billiardsGameEightBallRecord 中式八球比赛记录
     * @return 结果
     */
    public int insertBilliardsGameEightBallRecord(BilliardsGameEightBallRecord billiardsGameEightBallRecord);

    /**
     * 修改中式八球比赛记录
     *
     * @param billiardsGameEightBallRecord 中式八球比赛记录
     * @return 结果
     */
    public int updateBilliardsGameEightBallRecord(BilliardsGameEightBallRecord billiardsGameEightBallRecord);

    /**
     * 删除中式八球比赛记录
     *
     * @param id 中式八球比赛记录主键
     * @return 结果
     */
    public int deleteBilliardsGameEightBallRecordById(Long id);

    /**
     * 批量删除中式八球比赛记录
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteBilliardsGameEightBallRecordByIds(Long[] ids);

    BilliardsGameEightBallRecord findMaxByGamaId(Long gameId);

    void deleteNoCompleteRecord(Long gameId);
}
